home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / convert-options.xul < prev    next >
Extensible Markup Language  |  2010-01-15  |  2KB  |  49 lines

  1. <?xml version="1.0"?> 
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  6. <?xml-stylesheet href="chrome://dwhelper/skin/dwhelper.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://dwhelper/content/bindings.css" type="text/css"?>
  8.  
  9. <!DOCTYPE window SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  10.  
  11. <dialog id="dwhelper-convert-options-window"
  12.         title="&title.convert-options;"
  13.         flex="1"
  14.         onload="onLoad()"
  15.         ondialogaccept="return doOk();"
  16.         buttons="accept"
  17.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  18.         xmlns:html="http://www.w3.org/1999/xhtml"
  19.         >
  20.  
  21.     <script type="application/x-javascript"
  22.         src="chrome://dwhelper/content/dwhutil.js" />
  23.  
  24.     <script><![CDATA[
  25.     
  26. var props;
  27.     
  28. function onLoad() {
  29.     props=window.arguments[0].QueryInterface(Components.interfaces.nsIProperties);
  30.     var text=props.get("text",Components.interfaces.nsISupportsString);
  31.     var tb=document.getElementById("options");
  32.     tb.value=text;
  33. }
  34.  
  35. function doOk() {
  36.     var text = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
  37.     var tb=document.getElementById("options");
  38.     text.data=tb.value;
  39.     props.set("text",text);
  40. }
  41.  
  42.  
  43.     
  44.     ]]></script>
  45.  
  46.     <textbox id="options" cols="60" rows="6" multiline="true"/>
  47.  
  48. </dialog>
  49.